package com.fa4j.system.account.repository;

import com.fa4j.common.data.repository.BaseRepository;
import com.fa4j.common.web.model.AppType;
import com.fa4j.system.account.model.Account;

import java.util.Optional;

/**
 * 系统账号 持久化接口
 *
 * @since 2025-05-06 16:16:26
 */
public interface AccountRepository extends BaseRepository<Account> {

    Optional<Account> findByUsername(AppType appType, String username);

    Optional<Account> findByPhone(AppType appType, String phone);

    Optional<Account> findByEmail(AppType appType, String email);
}
